<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Killboard.Models.ekbKill>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Pilot Statistics
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">

    function DoNav(theUrl) {

        document.location.href = theUrl;
    }
  
</script>

    <h2>Pilot Statistics</h2>
<%Html.RenderPartial("KillStatsByShip", ViewData["killSummary"]); %>
<div style="clear:both">
<h2>Kills:</h2>
<%Html.RenderPartial("KillList", Model.OrderByDescending(o => o.KillTimeUTC).Where(x => x.VictimID != Convert.ToInt32(Request.QueryString["pilotID"]))); %>
</div>
<div style="clear:both">
<h2>Losses:</h2>
<%Html.RenderPartial("KillList", Model.OrderByDescending(o => o.KillTimeUTC).Where(x => x.VictimID == Convert.ToInt32(Request["pilotID"]))); %>
</div>

</asp:Content>
